import request from '@/utils/request'

export function addJob (data) { //新增职位
  return request({
    url: '/upms/post',
    method: 'post',
    data
  })
}

export function allOrg () {//所有的机构
  return request({
    url: '/upms/organization/searchall',
    method: 'get',

  })
}

export function jobList (data) { //职位列表
  JSON.stringify(data)
  return request({
    url: '/upms/post/search',
    method: 'get',
    params : data
  })
}

export function jobUp (data) {//更新职位
  return request({
    url: '/upms/post',
    method: 'put',
    params : data
  })
}

export function delJob (postId) {//删除角色
  return request({
    url: '/upms/post',
    method: 'DELETE',
    params : {postId}
  })
}
